import Token from "./token";
import User from "./user";
import UiAuth from "./UiAuth";
import MenuList from "./MenuList";
import ObjectTpl from "./ObjectTpl";
class Storage {
    public token: Token = new Token();
    public user: User = new User();
    public uiAuth: UiAuth = new UiAuth();
    public menuList: MenuList = new MenuList();
    public dictionary: ObjectTpl = new ObjectTpl("sysDictionary", {});
	public sysConfig: ObjectTpl = new ObjectTpl("sysConfig", {});
    public clear() {
        this.token.Remove();
        localStorage.clear();
        sessionStorage.clear();
    }
}

const storage: Storage = new Storage();
export default storage;
